home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1578.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  5.1 KB  |  225 lines

  1. 151
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. OpenFile 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baOpenFile opens a document, using the program that the file is associated with.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baOpenFile( FileName , State )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, String. 
  36. --- RECORDSEPARATOR ---
  37. FileName is the name of the file to open. The full path name should be supplied. 
  38. --- RECORDSEPARATOR ---
  39. State is the window state to open the file with. 
  40. --- RECORDSEPARATOR ---
  41. Can be one of these:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Windows
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. "Normal" 
  50. --- RECORDSEPARATOR ---
  51. shows in its usual state. 
  52. --- RECORDSEPARATOR ---
  53. "Hidden" 
  54. --- RECORDSEPARATOR ---
  55. is not visible. 
  56. --- RECORDSEPARATOR ---
  57. "Maximised" 
  58. --- RECORDSEPARATOR ---
  59. shows as a maximised window. 
  60. --- RECORDSEPARATOR ---
  61. "Minimised" 
  62. --- RECORDSEPARATOR ---
  63. shows as an minimised icon.
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. Macintosh
  68. --- RECORDSEPARATOR ---
  69.  
  70. --- RECORDSEPARATOR ---
  71. The State argument is ignored,
  72. --- RECORDSEPARATOR ---
  73.  
  74. --- RECORDSEPARATOR ---
  75. Returns:
  76. --- RECORDSEPARATOR ---
  77.  
  78. --- RECORDSEPARATOR ---
  79. Integer. 
  80. --- RECORDSEPARATOR ---
  81. Returns an error code. If the return is less than 32 than an error occurred. 
  82. --- RECORDSEPARATOR ---
  83. On
  84. --- RECORDSEPARATOR ---
  85.  Windows
  86. --- RECORDSEPARATOR ---
  87. , possible errors include: 
  88. --- RECORDSEPARATOR ---
  89. --- RECORDSEPARATOR ---
  90. System was out of memory. 
  91. --- RECORDSEPARATOR ---
  92. --- RECORDSEPARATOR ---
  93. File was not found. 
  94. --- RECORDSEPARATOR ---
  95. --- RECORDSEPARATOR ---
  96. Path was not found. 
  97. --- RECORDSEPARATOR ---
  98. --- RECORDSEPARATOR ---
  99. Sharing or network-protection error. 
  100. --- RECORDSEPARATOR ---
  101. --- RECORDSEPARATOR ---
  102. Library required separate data segments for each task. 
  103. --- RECORDSEPARATOR ---
  104. --- RECORDSEPARATOR ---
  105. There was insufficient memory to start the application. 
  106. --- RECORDSEPARATOR ---
  107. 10 
  108. --- RECORDSEPARATOR ---
  109. Windows version was incorrect. 
  110. --- RECORDSEPARATOR ---
  111. 11 
  112. --- RECORDSEPARATOR ---
  113. Executable file was invalid. Either it was not a Windows application or there was an error in 
  114. --- RECORDSEPARATOR ---
  115. the .EXE image. 
  116. --- RECORDSEPARATOR ---
  117. 12 
  118. --- RECORDSEPARATOR ---
  119. Application was designed for a different operating system. 
  120. --- RECORDSEPARATOR ---
  121. 13 
  122. --- RECORDSEPARATOR ---
  123. Application was designed for MS-DOS 4.0. 
  124. --- RECORDSEPARATOR ---
  125. 14 
  126. --- RECORDSEPARATOR ---
  127. Type of executable file was unknown. 
  128. --- RECORDSEPARATOR ---
  129. 15 
  130. --- RECORDSEPARATOR ---
  131. Attempt was made to load a real
  132. --- RECORDSEPARATOR ---
  133. -mode application (developed for an earlier version of 
  134. --- RECORDSEPARATOR ---
  135. Windows). 
  136. --- RECORDSEPARATOR ---
  137. 16 
  138. --- RECORDSEPARATOR ---
  139. Attempt was made to load a second instance of an executable file containing multiple data 
  140. --- RECORDSEPARATOR ---
  141. segments that were not marked read-only. 
  142. --- RECORDSEPARATOR ---
  143. 19 
  144. --- RECORDSEPARATOR ---
  145. Attempt was made to load a compressed executable file. The file must be decompressed 
  146. --- RECORDSEPARATOR ---
  147. before it can be loaded. 
  148. --- RECORDSEPARATOR ---
  149. 20 
  150. --- RECORDSEPARATOR ---
  151. Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application 
  152. --- RECORDSEPARATOR ---
  153. was corrupt. 
  154. --- RECORDSEPARATOR ---
  155. 21 
  156. --- RECORDSEPARATOR ---
  157. Application requires 32-bit extensions. 
  158. --- RECORDSEPARATOR ---
  159. 26 
  160. --- RECORDSEPARATOR ---
  161. A sharing violation occurred. 
  162. --- RECORDSEPARATOR ---
  163. 27 
  164. --- RECORDSEPARATOR ---
  165. The filename association is incomplete or invalid. 
  166. --- RECORDSEPARATOR ---
  167. 29 
  168. --- RECORDSEPARATOR ---
  169. The DDE transaction failed. 
  170. --- RECORDSEPARATOR ---
  171. 30 
  172. --- RECORDSEPARATOR ---
  173. The DDE transaction could not be completed because other DDE transactions were being 
  174. --- RECORDSEPARATOR ---
  175. processed. 
  176. --- RECORDSEPARATOR ---
  177. 31 
  178. --- RECORDSEPARATOR ---
  179. There is no application associated with the given filename 
  180. --- RECORDSEPARATOR ---
  181. On
  182. --- RECORDSEPARATOR ---
  183.  Macintosh
  184. --- RECORDSEPARATOR ---
  185. , an error will always return an error value of 0.
  186. --- RECORDSEPARATOR ---
  187.  
  188. --- RECORDSEPARATOR ---
  189. Examples:
  190. --- RECORDSEPARATOR ---
  191.  
  192. --- RECORDSEPARATOR ---
  193. Director: 
  194. --- RECORDSEPARATOR ---
  195. set OK = baOpenFile( the pathName & "test.txt" , "maximised" ) 
  196. --- RECORDSEPARATOR ---
  197. Authorware: 
  198. --- RECORDSEPARATOR ---
  199. OK := baOpenFile( FileLocation ^ "test.txt" , "maximised" )
  200. --- RECORDSEPARATOR ---
  201.  
  202. --- RECORDSEPARATOR ---
  203. Notes:
  204. --- RECORDSEPARATOR ---
  205.  
  206. --- RECORDSEPARATOR ---
  207. You should pass in the full path to the file.
  208. --- RECORDSEPARATOR ---
  209.  Windows
  210. --- RECORDSEPARATOR ---
  211.  will search for the file in limited 
  212. --- RECORDSEPARATOR ---
  213. specific places such as the current directory and the PATH variable, but
  214. --- RECORDSEPARATOR ---
  215.  Macintosh
  216. --- RECORDSEPARATOR ---
  217.  
  218. --- RECORDSEPARATOR ---
  219. wonΓÇÖt.